package com.qianfeng.dbsm.dao;

import com.qianfeng.dbsm.entity.TbOrderInvoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TbOrderInvoice)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-15 15:38:21
 */
@Mapper
public interface TbOrderInvoiceDao {

    /**
     * 通过order编号查询
     *
     * @param orderNumber 主键
     * @return 实例对象
     */
    TbOrderInvoice queryByOrderNumber(@Param("orderNumber")String orderNumber);

    /**
     * 分页查询
     * @param tbOrderInvoice
     * @param pageStart
     * @param pageSize
     * @return
     */
    List<TbOrderInvoice> queryAllByLimit(TbOrderInvoice tbOrderInvoice, Integer pageStart,Integer pageSize);

    /**
     * 新增数据
     *
     * @param tbOrderInvoice 实例对象
     * @return 影响行数
     */
    int insert(TbOrderInvoice tbOrderInvoice);

}

